<script language="javascript" src="/js/ajax_form.js"></script>
<script language="javascript">
	if (window != window.top) window.top.location = window.location;
	window.onload = function () {
		$("#username")[0].focus();
	}
	function post_callback(res) {
		$("#tips").html(res.message);
		if (res.success) {
			setTimeout('window.location.replace("/")',500);
		}		
	}
</script>
    <div class="login_form">
        <h3><?php echo $lang['title_login'];?></h3>
        <form method="post" action="/users/do_login">
            <?php echo $lang['login_name'];?><br />
            <input name="username" type="text" id="username" class="text" /><br />
            <?php echo $lang['login_pwd'];?><br />
            <input name="password" type="password" id="password" class="text" /><br />
            <input type="submit" value="<?php echo $lang['button_submit'];?>" class="button" /> 
            <input type="reset" value="<?php echo $lang['button_reset'];?>" class="button"/><br />
            <span id="tips" class="red"></span>
        </form>
    </div>